To do CPU management, Memory management and Swap file (virtual memory- it is free space on hdd allocated for virtual memory to increase the performance of the system while running large application software) management.
Support Input and Output devices.
To support Printers, keyboards, hard drives and USB drives.